//
//  WbTestController.swift
//  Weibo
//
//  Created by HH on 16/12/1.
//  Copyright © 2016年 Weibo. All rights reserved.
//

import UIKit

class WbTestController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, selector: #selector(testAction(sender:)))
        
        view.backgroundColor = #colorLiteral(red: 0.9529411793, green: 0.6862745285, blue: 0.1333333403, alpha: 1)
        // Do any additional setup after loading the view.
    }
    
    @objc private func testAction(sender:UIButton){
        
        let testVc = WbTestController()
        
        navigationController?.pushViewController(testVc, animated: true)
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
